package com.novax.ex.activity.infrastructure.mapper;

import com.novax.ex.activity.infrastructure.entity.BeebUser;
import com.novax.ex.common.base.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
   * @Description
   * @Author zhaolei
   * @Date 10/24/24 7:25 PM
   * @Version 1.0
   */
public interface BeebUserMapper extends BaseMapper {

    int queryBeebUserTotalThatStillNeedFundReleased();

    List<BeebUser> queryBeebUserThatStillNeedFundReleasedByCondition(@Param("fromId") Long fromId, @Param("limit") Integer limit);

    int markBeebUserAsNoLongerNeedFundReleased(@Param("id") Long id);

    int updateHasUnlockedBatch(@Param("id") Long id, @Param("unlockAmountThisBatch") BigDecimal unlockAmountThisBatch);

    List<BeebUser> queryByUserId(@Param("userId") Long id);
}
